import axios from 'axios';

export default {
    install: function(Vue, options) {

        let service = {
            // 查询日志记录
            QueryLogs: (condition, pageIndex, pageSize) => {
                return axios.post(`/admin/log/query?pageIndex=${pageIndex}&pageSize=${pageSize}`, condition);
            },

            // 查询日志记录数量
            QueryLogsCount: (condition) => {
                return axios.post('/admin/log/query/count', condition);
            },
        }

        Vue.prototype.$LogService = service;
    }
}